package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;
import com.itheima.pojo.Menu;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);

    /**
     * 用户管理分页查询
     * @param pageBean
     * @return
     */
    public PageResult findPage(QueryPageBean pageBean);

    public void add(User user, Integer[] roleIds);

    public User findById(Integer id);

    public void edit(User user, Integer[] roleIds);





    List<Menu> findMenu(String username);
}
